package com.ruoyi.testDeal.mapper;

import com.ruoyi.testDeal.domain.basic.YbBasicinfo;

import java.util.List;

/**
 * 仪器仪通用检测项Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-17
 */
public interface YbBasicinfoMapper 
{
    /**
     * 查询仪器仪通用检测项
     * 
     * @param ybBasicId 仪器仪通用检测项主键
     * @return 仪器仪通用检测项
     */
    public YbBasicinfo selectYbBasicinfoByYbBasicId(Long ybBasicId);

    /**
     * 根据报告编号查询
     */
    YbBasicinfo selectYbBasicinfoByReportNum(String reportNum);

    /**
     * 查询仪器仪通用检测项列表
     * 
     * @param ybBasicinfo 仪器仪通用检测项
     * @return 仪器仪通用检测项集合
     */
    public List<YbBasicinfo> selectYbBasicinfoList(YbBasicinfo ybBasicinfo);

    /**
     * 新增仪器仪通用检测项
     * 
     * @param ybBasicinfo 仪器仪通用检测项
     * @return 结果
     */
    public int insertYbBasicinfo(YbBasicinfo ybBasicinfo);

    /**
     * 修改仪器仪通用检测项
     * 
     * @param ybBasicinfo 仪器仪通用检测项
     * @return 结果
     */
    public int updateYbBasicinfo(YbBasicinfo ybBasicinfo);

    /**
     * 删除仪器仪通用检测项
     * 
     * @param ybBasicId 仪器仪通用检测项主键
     * @return 结果
     */
    public int deleteYbBasicinfoByYbBasicId(Long ybBasicId);

    /**
     * 根据报告编号删除
     */
    int deleteYbBasicinfoByReportNum(String reportNum);

    /**
     * 批量删除仪器仪通用检测项
     * 
     * @param ybBasicIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYbBasicinfoByYbBasicIds(Long[] ybBasicIds);
}
